package com.jinghang.scala_base;

public class _011FunctionApp {

    public static void main(String[] args) {
        sayHello();

        int[]  nums = {1,2,3,4,5,6};

        int result = 0;
        for (int num : nums) {
            System.out.println("num:"+num);
            result += num;
        }

        /*
        *  for (number <- numbers) {
          println("number:"+number)
          result += number
    }*/

        System.out.println(result);

    }

    public static void sayHello(){
        System.out.println("hello everyBody");
    }


}
